package com.cloudpolice.door.feignInterface;

import com.cloudpolice.door.feignInterface.hystric.EquipmentInterFaceHystric;
import lh.model.ResultVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author ：梁昊，后端工程师：flyman5，前端工程师：孙耀
 * @create 2020-02-29 17:16
 * @function
 * @editLog
 */
@Repository
@FeignClient(value = "equipment-mucon/equipmentController",fallback = EquipmentInterFaceHystric.class)
public interface EquipmentInterFace {
    @PostMapping("/SelectEquipmentSiteBySn")
    ResultVO selectEquipmentSiteBySn(@RequestParam(value = "sn") String sn);

    @PostMapping("/SelectEquipmentBySn")
    ResultVO SelectEquipmentBySn(@RequestParam(value = "id") String id
            , @RequestParam(value = "stopSign", required = false, defaultValue = "0") boolean stopSign);

    @PostMapping("/SelectEquipmentBySnAndMac")
    ResultVO SelectEquipmentBySnAndMac(@RequestParam(value = "id") String id
            , @RequestParam(value = "mac") String mac);

    }
